﻿using PoemGame.Domain.Seedwork;

namespace PoemGame.Domain.GameAggregate.Events
{
    /// <summary>
    /// 游戏进行事件,游戏进行时产生
    /// </summary>
    public class GamePlayEventDataLocal : BaseEventDataLocal
    {
        public GamePlayEventDataLocal(Game game, string playerUserName, Guid playerId, string answer, bool isProper,DateTime date):base(date,game)
        {
            GameId = game.Id;
            GameDescription = game.Description;
            PlayerUserName = playerUserName;
            PlayerId = playerId;
            Answer = answer;
            IsProper = isProper;
        }

        /// <summary>
        /// 游戏ID
        /// </summary>
        public Guid GameId { get; private set; }
        /// <summary>
        /// 游戏描述
        /// </summary>
        public string GameDescription { get; private set; }
        /// <summary>
        /// 玩家用户名
        /// </summary>
        public string PlayerUserName { get; private  set; }
        /// <summary>
        /// 玩家ID
        /// </summary>
        public Guid PlayerId { get; private set; }
        /// <summary>
        /// 回答
        /// </summary>
        public string Answer { get; private set; }
        /// <summary>
        /// 回答是否合适
        /// </summary>
        public bool IsProper { get; private set; }


    }
}
